package com.bwie.mq;

import com.bwie.pojo.po.Customer;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class EndTimeProducer {

    @Autowired
    private AmqpTemplate amqpTemplate;


    public void endTime(Customer customer){
        amqpTemplate.convertAndSend("endTimekey",customer);
    }
}
